from gevent import monkey

import client

monkey.patch_all()
import gevent

# devicedict = {'1':1,'2':1}
devicedict = {'3':1}
# devicedict = {}

def send(imei,instruct,params):
    print 'interact:',imei,instruct,params

def send_noblock(imei,instruct,params):
    print 'interact_noblock:',imei,instruct,params

server = client.Dispose(devicedict,interact=send,interact_noblock=send_noblock)
server.start()


while True:
    gevent.sleep(100)


